/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * student.java
 *
 * Created on 18.09.2011, 16:30:20
 */
package de.aeo.bll;

import java.awt.event.KeyEvent;
import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListModel;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.KeyStroke;

/**
 * @author Frederic Branczyk & Robert Piwonski
 */
public class StudentsForm extends javax.swing.JFrame {
    
    //Variable declaration Start
    
    private Algorithm a;
    private main mainFrame;
    private DefaultComboBoxModel subjects1;
    private DefaultComboBoxModel subjects2;
    private DefaultComboBoxModel subjects3;
    private DefaultComboBoxModel subjects4;
    private DefaultComboBoxModel subjects5;
    private DefaultComboBoxModel subjects6;
    private Student editStudent;
    private int editStudentIndex;
    
    //Variable declaration End

    /** Creates new form student */
    public StudentsForm(String title, Algorithm a, main mainFrame) {
        this.setTitle(title);
        this.a = a;
        this.mainFrame = mainFrame;
        this.subjects1 = new DefaultComboBoxModel();
        this.subjects2 = new DefaultComboBoxModel();
        this.subjects3 = new DefaultComboBoxModel();
        this.subjects4 = new DefaultComboBoxModel();
        this.subjects5 = new DefaultComboBoxModel();
        this.subjects6 = new DefaultComboBoxModel();
        initComponents();
        this.jButtonApply.registerKeyboardAction(this.jButtonApply.getActionListeners()[0], KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0, false), JComponent.WHEN_IN_FOCUSED_WINDOW);
        this.jButtonApply.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
        this.jButtonApply.getActionMap();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jTextFieldFirstname = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jButtonApply = new javax.swing.JButton();
        jTextFieldLastname = new javax.swing.JTextField();
        jLabelLastname = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jComboBoxSubject1 = new javax.swing.JComboBox();
        jComboBoxSubject2 = new javax.swing.JComboBox();
        jComboBoxSubject3 = new javax.swing.JComboBox();
        jComboBoxSubject4 = new javax.swing.JComboBox();
        jComboBoxSubject5 = new javax.swing.JComboBox();
        jLabel8 = new javax.swing.JLabel();
        jComboBoxClass = new javax.swing.JComboBox();
        jButtonHelp = new javax.swing.JButton();
        jComboBoxSubject6 = new javax.swing.JComboBox();
        jLabel5 = new javax.swing.JLabel();

        setResizable(false);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                formWindowClosing(evt);
            }
        });
        addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                formKeyReleased(evt);
            }
        });

        jLabel1.setText(this.a.getLanguageString("firstname")+":");

        jLabel2.setText(this.a.getLanguageString("subject")+" 1:");

        jLabel3.setText(this.a.getLanguageString("subject")+" 2:");

        jLabel4.setText(this.a.getLanguageString("subject")+" 3:");

        jButtonApply.setText(this.a.getLanguageString("apply"));
        jButtonApply.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonApplyActionPerformed(evt);
            }
        });
        jButtonApply.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                jButtonApplyKeyReleased(evt);
            }
        });

        jLabelLastname.setText(this.a.getLanguageString("lastname")+":");

        jLabel6.setText(this.a.getLanguageString("subject")+" 5:");

        jLabel7.setText(this.a.getLanguageString("subject")+" 4:");

        jComboBoxSubject1.setModel(this.subjects1);

        jComboBoxSubject2.setModel(this.subjects2);

        jComboBoxSubject3.setModel(this.subjects3);

        jComboBoxSubject4.setModel(this.subjects4);

        jComboBoxSubject5.setModel(this.subjects5);

        jLabel8.setText(this.a.getLanguageString("class")+":");

        jComboBoxClass.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "A", "B", "C", "D", "E", "F", "G", "H", "I" }));
        jComboBoxClass.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBoxClassActionPerformed(evt);
            }
        });

        jButtonHelp.setText(this.a.getLanguageString("help"));
        jButtonHelp.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonHelpActionPerformed(evt);
            }
        });

        jComboBoxSubject6.setModel(this.subjects6);

        jLabel5.setText(this.a.getLanguageString("subject")+" 6:");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(jLabelLastname)
                    .addComponent(jLabel2)
                    .addComponent(jLabel3)
                    .addComponent(jLabel4)
                    .addComponent(jLabel7)
                    .addComponent(jLabel8)
                    .addComponent(jLabel6)
                    .addComponent(jLabel5))
                .addGap(22, 22, 22)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jButtonHelp, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jButtonApply, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addComponent(jComboBoxSubject6, javax.swing.GroupLayout.Alignment.TRAILING, 0, 208, Short.MAX_VALUE)
                    .addComponent(jComboBoxSubject5, javax.swing.GroupLayout.Alignment.TRAILING, 0, 208, Short.MAX_VALUE)
                    .addComponent(jTextFieldFirstname, javax.swing.GroupLayout.DEFAULT_SIZE, 208, Short.MAX_VALUE)
                    .addComponent(jTextFieldLastname, javax.swing.GroupLayout.DEFAULT_SIZE, 208, Short.MAX_VALUE)
                    .addComponent(jComboBoxClass, 0, 208, Short.MAX_VALUE)
                    .addComponent(jComboBoxSubject4, 0, 208, Short.MAX_VALUE)
                    .addComponent(jComboBoxSubject3, 0, 208, Short.MAX_VALUE)
                    .addComponent(jComboBoxSubject2, 0, 208, Short.MAX_VALUE)
                    .addComponent(jComboBoxSubject1, 0, 208, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jTextFieldFirstname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldLastname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelLastname))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBoxClass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel8))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBoxSubject1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBoxSubject2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBoxSubject3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel4))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBoxSubject4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel7))
                .addGap(9, 9, 9)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBoxSubject5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6))
                .addGap(11, 11, 11)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBoxSubject6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel5))
                .addGap(12, 12, 12)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonApply)
                    .addComponent(jButtonHelp))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButtonApplyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonApplyActionPerformed
        try {
            this.apply();
        } catch (InterruptedException ex) {
            JOptionPane.showMessageDialog(this, ex.getMessage(), this.a.getLanguageString("titleWarning"), 0);
        }
    }//GEN-LAST:event_jButtonApplyActionPerformed

    private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing
        try {
            this.resetForm();
        } catch (InterruptedException ex) {
            JOptionPane.showMessageDialog(this, ex.getMessage(), this.a.getLanguageString("titleWarning"), 0);
        }
    }//GEN-LAST:event_formWindowClosing

    private void jComboBoxClassActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxClassActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jComboBoxClassActionPerformed

    private void jButtonHelpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonHelpActionPerformed
        JOptionPane.showMessageDialog(this, 
                this.a.getLanguageString("studentSubjectHelpMsg"), 
                this.a.getLanguageString("help"), 1);
    }//GEN-LAST:event_jButtonHelpActionPerformed

    private void formKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_formKeyReleased
        // TODO add your handling code here:
    }//GEN-LAST:event_formKeyReleased

    private void jButtonApplyKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButtonApplyKeyReleased
        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonApplyKeyReleased

    public JComboBox getjComboBoxClass() {
        return jComboBoxClass;
    }

    public void setjComboBoxClass(JComboBox jComboBoxClass) {
        this.jComboBoxClass = jComboBoxClass;
    }

    public JComboBox getjComboBoxSubject1() {
        return jComboBoxSubject1;
    }

    public void setjComboBoxSubject1(JComboBox jComboBoxSubject1) {
        this.jComboBoxSubject1 = jComboBoxSubject1;
    }

    public JComboBox getjComboBoxSubject2() {
        return jComboBoxSubject2;
    }

    public void setjComboBoxSubject2(JComboBox jComboBoxSubject2) {
        this.jComboBoxSubject2 = jComboBoxSubject2;
    }

    public JComboBox getjComboBoxSubject3() {
        return jComboBoxSubject3;
    }

    public void setjComboBoxSubject3(JComboBox jComboBoxSubject3) {
        this.jComboBoxSubject3 = jComboBoxSubject3;
    }

    public JComboBox getjComboBoxSubject4() {
        return jComboBoxSubject4;
    }

    public void setjComboBoxSubject4(JComboBox jComboBoxSubject4) {
        this.jComboBoxSubject4 = jComboBoxSubject4;
    }

    public JComboBox getjComboBoxSubject5() {
        return jComboBoxSubject5;
    }

    public void setjComboBoxSubject5(JComboBox jComboBoxSubject5) {
        this.jComboBoxSubject5 = jComboBoxSubject5;
    }

    public JComboBox getjComboBoxSubject6() {
        return jComboBoxSubject6;
    }

    public void setjComboBoxSubject6(JComboBox jComboBoxSubject6) {
        this.jComboBoxSubject6 = jComboBoxSubject6;
    }

    public JTextField getjTextFieldFirstname() {
        return jTextFieldFirstname;
    }

    public void setjTextFieldFirstname(JTextField jTextFieldFirstname) {
        this.jTextFieldFirstname = jTextFieldFirstname;
    }

    public JTextField getjTextFieldLastname() {
        return jTextFieldLastname;
    }

    public void setjTextFieldLastname(JTextField jTextFieldLastname) {
        this.jTextFieldLastname = jTextFieldLastname;
    }

    public Student getEditStudent() {
        return editStudent;
    }

    public void setEditStudent(Student editStudent) {
        this.editStudent = editStudent;
    }

    public int getEditStudentIndex() {
        return editStudentIndex;
    }

    public void setEditStudentIndex(int editStudentIndex) {
        this.editStudentIndex = editStudentIndex;
    }
    
    public void resetForm() throws InterruptedException {
        this.setVisible(false);
        this.getjTextFieldFirstname().setText("");
        this.getjTextFieldLastname().setText("");
        this.getjComboBoxClass().setSelectedIndex(0);
        this.getjComboBoxSubject1().setSelectedIndex(0);
        this.getjComboBoxSubject2().setSelectedIndex(0);
        this.getjComboBoxSubject3().setSelectedIndex(0);
        this.getjComboBoxSubject4().setSelectedIndex(0);
        this.getjComboBoxSubject5().setSelectedIndex(0);
        this.getjComboBoxSubject6().setSelectedIndex(0);
        this.mainFrame.setStudentsEditable(true);
        this.mainFrame.setFocusable(true);
    }
    
    private void apply() throws InterruptedException {
        if(this.editStudent == null) {
            if(this.jTextFieldFirstname.getText().isEmpty() || this.jTextFieldLastname.getText().isEmpty()) {
                try {
                    throw new EmptyStudentException(this.a.getLanguageString("emptyStudentExceptionMsg"));
                } catch (EmptyStudentException ex) {
                    JOptionPane.showMessageDialog(this, ex.getMessage(), this.a.getLanguageString("titleWarning"), 0);
                }
            }else if(this.getjTextFieldFirstname().getText().contains(";") ||
                     this.getjTextFieldLastname().getText().contains(";")) {
                JOptionPane.showMessageDialog(this, this.a.getLanguageString("illegalCharacterMsg")+" [\";\"]", this.a.getLanguageString("titleWarning"), 0);
            }else {
                Subject[] subjects = new Subject[6];
                if(this.getjComboBoxSubject1().getSelectedIndex()!=0)
                    subjects[0] = this.a.getSubjectList().get(this.getjComboBoxSubject1().getSelectedIndex()-1);
                else
                    subjects[0] = null;

                if(this.getjComboBoxSubject2().getSelectedIndex()!=0)
                    subjects[1] = this.a.getSubjectList().get(this.getjComboBoxSubject2().getSelectedIndex()-1);
                else 
                    subjects[1] = null;

                if(this.getjComboBoxSubject3().getSelectedIndex()!=0) 
                    subjects[2] = this.a.getSubjectList().get(this.getjComboBoxSubject3().getSelectedIndex()-1);
                else 
                    subjects[2] = null;

                if(this.getjComboBoxSubject4().getSelectedIndex()!=0) 
                    subjects[3] = this.a.getSubjectList().get(this.getjComboBoxSubject4().getSelectedIndex()-1);
                else 
                    subjects[3] = null;

                if(this.getjComboBoxSubject5().getSelectedIndex()!=0) 
                    subjects[4] = this.a.getSubjectList().get(this.getjComboBoxSubject5().getSelectedIndex()-1);
                else 
                    subjects[4] = null;
                
                if(this.getjComboBoxSubject6().getSelectedIndex()!=0) 
                    subjects[5] = this.a.getSubjectList().get(this.getjComboBoxSubject6().getSelectedIndex()-1);
                else 
                    subjects[5] = null;

                Student s = new Student(this.jTextFieldFirstname.getText(), this.jTextFieldLastname.getText(), this.jComboBoxClass.getSelectedItem().toString(), subjects);
                this.a.addStudentList(s);
                this.mainFrame.getJLabelStudentCount().setText(Integer.toString(this.a.getStudentCount()));
                DefaultListModel dlm = (DefaultListModel)this.mainFrame.getjListStudents().getModel();
                dlm.insertElementAt(this.jTextFieldFirstname.getText()+" "+this.jTextFieldLastname.getText()+" - "+this.jComboBoxClass.getSelectedItem().toString(), 
                                    dlm.getSize()-1);
                this.mainFrame.createPreview();
                resetForm();
            }
        }else {
            if(this.getjTextFieldFirstname().getText().contains(";") ||
               this.getjTextFieldLastname().getText().contains(";")) {
                JOptionPane.showMessageDialog(this, this.a.getLanguageString("illegalCharacterMsg")+" [\";\"]", this.a.getLanguageString("titleWarning"), 0);
            }else {
                this.editStudent.setFirstname(this.getjTextFieldFirstname().getText());
                this.editStudent.setLastname(this.getjTextFieldLastname().getText());
                Subject[] subjects = new Subject[6];
                if(this.getjComboBoxSubject1().getSelectedIndex()!=0)
                    subjects[0] = this.a.getSubjectList().get(this.getjComboBoxSubject1().getSelectedIndex()-1);
                else
                    subjects[0] = null;

                if(this.getjComboBoxSubject2().getSelectedIndex()!=0)
                    subjects[1] = this.a.getSubjectList().get(this.getjComboBoxSubject2().getSelectedIndex()-1);
                else 
                    subjects[1] = null;

                if(this.getjComboBoxSubject3().getSelectedIndex()!=0) 
                    subjects[2] = this.a.getSubjectList().get(this.getjComboBoxSubject3().getSelectedIndex()-1);
                else 
                    subjects[2] = null;

                if(this.getjComboBoxSubject4().getSelectedIndex()!=0) 
                    subjects[3] = this.a.getSubjectList().get(this.getjComboBoxSubject4().getSelectedIndex()-1);
                else 
                    subjects[3] = null;

                if(this.getjComboBoxSubject5().getSelectedIndex()!=0) 
                    subjects[4] = this.a.getSubjectList().get(this.getjComboBoxSubject5().getSelectedIndex()-1);
                else 
                    subjects[4] = null;

                if(this.getjComboBoxSubject6().getSelectedIndex()!=0) 
                    subjects[5] = this.a.getSubjectList().get(this.getjComboBoxSubject6().getSelectedIndex()-1);
                else 
                    subjects[5] = null;

                this.editStudent.setSubjectList(subjects);
                this.editStudent.setcClass(this.getjComboBoxClass().getSelectedItem().toString());
                DefaultListModel dlm = (DefaultListModel)this.mainFrame.getjListStudents().getModel();
                dlm.setElementAt(this.jTextFieldFirstname.getText()+" "+this.jTextFieldLastname.getText()+" - "+this.jComboBoxClass.getSelectedItem().toString(), this.editStudentIndex);
                this.mainFrame.createPreview();
                resetForm();
            }
        }
    }
    
    public void reloadLanguageData() {
        this.jLabel1.setText(this.a.getLanguageString("firstname")+":");
        this.jLabel2.setText(this.a.getLanguageString("lastname")+":");
        this.jLabel3.setText(this.a.getLanguageString("class")+":");
        this.jLabel2.setText(this.a.getLanguageString("subject")+" 1:");
        this.jLabel3.setText(this.a.getLanguageString("subject")+" 2:");
        this.jLabel4.setText(this.a.getLanguageString("subject")+" 3:");
        this.jLabel7.setText(this.a.getLanguageString("subject")+" 4:");
        this.jLabel6.setText(this.a.getLanguageString("subject")+" 5:");
        this.jLabel5.setText(this.a.getLanguageString("subject")+" 6:");
        this.jButtonApply.setText(this.a.getLanguageString("apply"));
        this.jButtonHelp.setText(this.a.getLanguageString("help"));
        this.setTitle(this.a.getLanguageString("student"));
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonApply;
    private javax.swing.JButton jButtonHelp;
    private javax.swing.JComboBox jComboBoxClass;
    private javax.swing.JComboBox jComboBoxSubject1;
    private javax.swing.JComboBox jComboBoxSubject2;
    private javax.swing.JComboBox jComboBoxSubject3;
    private javax.swing.JComboBox jComboBoxSubject4;
    private javax.swing.JComboBox jComboBoxSubject5;
    private javax.swing.JComboBox jComboBoxSubject6;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabelLastname;
    private javax.swing.JTextField jTextFieldFirstname;
    private javax.swing.JTextField jTextFieldLastname;
    // End of variables declaration//GEN-END:variables
}
